<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<#include "../inc/commonJs.html">
<title>发布信息</title>
<script type="text/javascript">
$(function(){
	$('#typeTree').tree({
		url:'typeTree.do',
	    lines:true,
	    animate:true,
	    onClick: function(node){
	    	if(!$(this).tree('isLeaf', node.target)){
	    		$(this).tree('toggle', node.target);
	    		return;
	    	}
	    	$('#news').html('');
	    	$('#newAdd').layout('collapse','west');
	    	var url = 'newsAdd.do?typeid='+node.id;
	    	var content = '<div><iframe src="' + url + 
	    		'" scrolling="auto" style="width:100%;height:100%;border:0;" ></iframe></div>';
			$('#news').append(content);
		}
	}); 
});
</script>	
</head>
<body>
<div id="newAdd" class="easyui-layout" data-options="fit:true">
	<div data-options="region:'west',iconCls:'icon-mini-add',title:'栏目列表',border:true,split:true" style="width: 180px;">
		<ul id="typeTree" class="easyui-tree"></ul>  
	</div>
	<div data-options="region:'center',border:true">
	   	<div id="news">请选择栏目进行添加</div>
	</div>
</div>
</body>
</html>